﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>登录 - 账户 </title>
      
<meta charset="utf-8">
<meta name="author" content="Harry Boo">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

<!-- Favicons -->

<link rel="stylesheet" href="/NewAdmin/View/User/login2/css/bootstrap.min.css">
<link rel="stylesheet" href="/NewAdmin/View/User/login2/css/animate.min.css">
<link rel="stylesheet" href="/NewAdmin/View/User/login2/css/main.min.css">
<link rel="stylesheet" href="/NewAdmin/View/User/login2/css/cover.css">
<link rel="stylesheet" href="/NewAdmin/View/User/login2/css/magnific-popup.css">
<link rel="stylesheet" href="/NewAdmin/View/User/login2/css/magnific-popup-zoom-gallery.css">
<link rel="stylesheet" href="/NewAdmin/View/User/login2/css/owl.carousel.css">
<link rel="stylesheet" href="/NewAdmin/View/User/login2/css/owl.theme.css">
<link rel="stylesheet" href="/NewAdmin/View/User/login2/css/owl.transitions.css">
<link rel="stylesheet" href="/NewAdmin/View/User/login2/css/pasific.css">
<link rel="stylesheet" href="/NewAdmin/View/User/login2/css/font-awesome.css">
<link rel="stylesheet" href="/NewAdmin/View/User/login2/css/et-line-font.css">

<link rel="stylesheet" href="/NewAdmin/View/User/login2/css/home.3.4.min.css" rel="stylesheet">

    </head>
    <body  id="topPage" data-spy="scroll" data-target=".navbar" data-offset="100">
        
        <div class="site-wrapper" style="background:url(/NewAdmin/View/User/login2/images/img-bg-26.jpg) 50% 50% no-repeat;">

            <div class="site-wrapper-inner">
                <div class="cover-container">
                    <div class="masthead clearfix">
                        <div class="inner">
                            <nav class="navbar navbar-pasific navbar-mp megamenu navbar-fixed-top">
                                <div class="container-fluid">
                                    <div class="navbar-header">
                                        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-main-collapse">
                                            <i class="fa fa-bars"></i>
                                        </button>
                                        <a class="navbar-brand page-scroll" href="/">
                                            <img src="/NewAdmin/View/User/login2/picture/logo.png" alt="logo" style="width:37px">
                                            <span class="color-dark">58代言</span>
                                        </a>
                                    </div>
                                </div>
                            </nav>
                        </div>
                    </div>

                    <div id="formLogin" class="inner cover text-center animated fadeIn visible" data-animation="fadeIn" data-animation-delay="100">
                        <br>
                        <h3 class="cover-heading mb20 mt20">店铺后台-登录</h3>
                         <h6 class="login-error hidden">*您的邮箱已经存在</h6>
                        <div class="clearfix mb35">
                            <div class="col-sm-8 col-sm-offset-2">
                                <input type="text" name="email" id="username" class="form-control text-center no-border input-lg input-circle bg-light-transparent" placeholder="您的用户名">
                            </div>
                            <div class="col-sm-8 col-sm-offset-2 mt10">
                                <input type="password" name="password2" id="password" class="form-control text-center no-border input-lg input-circle bg-light-transparent" placeholder="请填写密码">
                            </div>
                            <div class="col-sm-8 col-sm-offset-2 mt5">
                                <button id="toLogin" class="button button-lg button-circle button-block button-pasific hover-ripple-out">确认登录</button><br><br>
                            </div>
                        </div>
                        <br>
                    </div>
                

                    <div id="popup-captcha"></div>
                    <div class="mastfoot">
                        <div class="inner">
                            <p class="color-light text-center">&copy;2018 58代言</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="/static/js/jquery-1.11.1.min.js"></script>
        <script src="/static/js/layer2.1/layer.js"></script>
        <script type="text/javascript">
            $(function(){
                $('.button').click(function(){
                    var username=$('#username').val();
                    var password=$('#password').val();

                    if(username==''){
                        layer.msg('请输入帐号！');
                        return;
                    }
                    if(password==''){
                        layer.msg('请输入密码！');
                        return;
                    }

                    $.post('/user/loginin', {
                        username: username,
                        password: password,
                    }, function(result) {
                        if(result.code==0){
                            layer.msg(result.message)
                        }
                        if(result.code==1){
                            layer.msg(result.message)
                            setTimeout('location.href="'+result.data+'";',1000)

                        }
                    }, "json");
                })
            })
        </script>


    </body>
</html>